package com.ruoyi.project.setsystem.companydept.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author 大帅比
 * @date 2020-09-19 14:07
 * @desc 百战程序员 http://www.itbaizhan.com
 */
//@TableName("sys_dept")
public class CompanyDept extends BaseEntity {
    private Long deptId;
    private Long parentId;
    private String ancestors;
    private String deptName;
    private String orderNum;
    private String leader;
    private String phone;

    private String email;
    private String status;
    private String delFlag;
    private String parentName;

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getAncestors() {
        return ancestors;
    }

    public void setAncestors(String ancestors) {
        this.ancestors = ancestors;
    }
    @NotBlank(message = "部门名称不能为空")
    @Size(min = 0, max = 30, message = "部门名称长度不能超过30个字符")
    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }
    @NotBlank(message = "序列不能为空")
    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public String getLeader() {
        return leader;
    }

    public void setLeader(String leader) {
        this.leader = leader;
    }
    @NotBlank(message = "手机号不能为空")
    @Size(min = 0, max = 11, message = "手机号长度不能超过11个字符")
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    @Email(message = "邮箱格式不正确")
    @Size(min = 0, max = 30, message = "部门名称长度不能超过30个字符")
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    @Override
    public String toString() {
        return "CompanyDept{" +
                "deptId=" + deptId +
                ", parentId=" + parentId +
                ", ancestors='" + ancestors + '\'' +
                ", deptName='" + deptName + '\'' +
                ", orderNum='" + orderNum + '\'' +
                ", leader='" + leader + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", status='" + status + '\'' +
                ", delFlag='" + delFlag + '\'' +
                ", parentName='" + parentName + '\'' +
                '}';
    }

//    @Override
//    public String toString() {
//        return "CompanyDept{" +
//                "deptId=" + deptId +
//                ", parentId=" + parentId +
//                ", ancestors='" + ancestors + '\'' +
//                ", deptName='" + deptName + '\'' +
//                ", orderNum='" + orderNum + '\'' +
//                ", leader='" + leader + '\'' +
//                ", phone='" + phone + '\'' +
//                ", email='" + email + '\'' +
//                ", status='" + status + '\'' +
//                ", delFlag='" + delFlag + '\'' +
//                '}';
//    }
}
